Add helper functions that let us temporarily give
a different allocation to headers. These will be
used to implement interactive column reordering
in GtkColumnView.
int natural_size_request;
int allocation_offset;
int allocation_size;
+ int header_position;
int fixed_width;
{
self->allocation_offset = offset;
self->allocation_size = size;
+ self->header_position = offset;
}
void
{
return self->header;
}
+
+void
+gtk_column_view_column_set_header_position (GtkColumnViewColumn *self,
+ int offset)
+{
+ self->header_position = offset;
+}
+
+void
+gtk_column_view_column_get_header_allocation (GtkColumnViewColumn *self,
+ int *offset,
+ int *size)
+{
+ if (offset)
+ *offset = self->header_position;
+
+ if (size)
+ *size = self->allocation_size;
+}
void gtk_column_view_column_notify_sort (GtkColumnViewColumn *self);
+void gtk_column_view_column_set_header_position (GtkColumnViewColumn *self,
+ int offset);
+void gtk_column_view_column_get_header_allocation (GtkColumnViewColumn *self,
+ int *offset,
+ int *size);
+
#endif /* __GTK_COLUMN_VIEW_COLUMN_PRIVATE_H__ */